---
title: http.Directory.new()
api: http.Directory.new
---

## Description

<Summary/>

## Syntax

``` js
new http.Directory(path)
new http.Directory(path, options)
```

## Parameters

<Parameters/>

## See Also

* [http.Directory](/reference/api/http/Directory)
* [serve()](/reference/api/http/Directory/serve)
